﻿using SunnyPaine.Autofac.Extension.Mvvm.Test.ViewModel;
using SunnyPaine.Autofac.Extension.Mvvm.ViewCore;
using SunnyPaine.Autofac.Extension.Stereotype.Attributes;
using System.Windows;

namespace SunnyPaine.Autofac.Extension.Mvvm.Test
{
    /// <summary>
    /// ChildWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ChildWindow : Window, IWindow
    {
        [Resource(Name = "ChildViewModel")]
        private IChildViewModel ViewModel
        {
            get { return this.DataContext as IChildViewModel; }
            set { this.DataContext = value; }
        }

        public ChildWindow()
        {
            this.InitializeComponent();
        }
    }
}
